
#include <iostream>
#include <vector>
#define N 4
typedef void(*task)();

void task1()
{
    std::cout << "前进" << std::endl;
}
void task2()
{
    std::cout << "后退" << std::endl;
}void task3()
{
    std::cout << "跳跃" << std::endl;
}void task4()
{
    std::cout << "蹲下" << std::endl;
}

std::vector<task> tasks = {task1, task2, task3, task4};